<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "user_order".
 *
 * @property string $id
 * @property string $user_id
 * @property string $user_record_id
 * @property string $award_id
 * @property string $award_name
 * @property string $mobile
 * @property integer $date
 * @property integer $create_time
 */
class UserOrder extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_order';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['date', 'create_time'], 'integer'],
            [['id', 'user_id', 'user_record_id', 'award_id'], 'string', 'max' => 36],
            [['award_name'], 'string', 'max' => 30],
            [['mobile'], 'string', 'max' => 13],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'user_record_id' => 'User Record ID',
            'award_id' => 'Award ID',
            'award_name' => 'Award Name',
            'mobile' => 'Mobile',
            'date' => 'Date',
            'create_time' => 'Create Time',
        ];
    }
}
